//
//  DKOrderBilsHeaderView.m
//  DanKU
//
//  Created by EDY on 2023/11/6.
//

#import "DKOrderBilsHeaderView.h"

#pragma mark   DKOrderBilsHeaderView

@interface DKOrderBilsHeaderView()

@property(nonatomic,strong)UILabel *dk_OrderBilsHeader;


@end

@implementation DKOrderBilsHeaderView

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame: frame]) {
        self.backgroundColor =  DK_Hex(@"#FAFAFA");
        [self HeaderView];
    }
    return self;
}

-(void)HeaderView{
    [self addSubview:self.dk_OrderBilsHeader];
    [self.dk_OrderBilsHeader mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self).offset(20);
        make.right.equalTo(self).offset(-20);
        make.height.mas_equalTo(40);
        make.centerY.equalTo(self);
    }];
}

- (UILabel *)dk_OrderBilsHeader {
    if (!_dk_OrderBilsHeader) {
        _dk_OrderBilsHeader = [[UILabel alloc] init];
        _dk_OrderBilsHeader.textColor = DK_Hex(@"#FF0000");
        _dk_OrderBilsHeader.font = [UIFont boldSystemFontOfSize:11];
        _dk_OrderBilsHeader.text = @"Your order has expired, please repay immediately to avoid more penalty interest";
//        _dk_OrderBilsHeader.text = @"Please pay for your order promptly to avoid having your credit limit affected.";
        _dk_OrderBilsHeader.numberOfLines = 0;
    }
    return _dk_OrderBilsHeader;
}

@end


#pragma mark   DKOrderBilsFootView

@interface DKOrderBilsFootView()
@property(nonatomic,strong)UILabel *dk_OrderBilsFoot;

@end

@implementation DKOrderBilsFootView

-(instancetype)initWithFrame:(CGRect)frame{
    if (self = [super initWithFrame: frame]) {
        self.backgroundColor =  DK_Hex(@"#FAFAFA");
        [self FootView];
    }
    return self;
}

-(void)FootView{
    [self addSubview:self.dk_OrderBilsFoot];
    [self.dk_OrderBilsFoot mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self).offset(15);
        make.right.equalTo(self).offset(-15);
        make.top.bottom.equalTo(self);
    }];
}

- (UILabel *)dk_OrderBilsFoot {
    if (!_dk_OrderBilsFoot) {
        _dk_OrderBilsFoot = [[UILabel alloc] init];
        _dk_OrderBilsFoot.textColor = DK_Hex(@"#FF0000");
        _dk_OrderBilsFoot.font = [UIFont boldSystemFontOfSize:11];
        _dk_OrderBilsFoot.text = @"Partial repayment";
    }
    return _dk_OrderBilsFoot;
}


@end





